<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
		$this->view->headScript()->appendFile('/js/skitter-slider.js');
		$this->view->headScript()->appendFile('/js/jquery.easing.1.3.js');
		
		$obj_eventos = new Application_Model_Evento();
		$eventos_agenda = $obj_eventos->getEventosTop3();
		$this->view->eventos_agenda = $eventos_agenda;
		
		$obj_galerias = new Application_Model_Galeria();
		$galerias = $obj_galerias->getGaleriasLimit(8);
		$this->view->galerias = $galerias;
		
		$obj_noticias = new Application_Model_Noticia();
		$noticias_footer = $obj_noticias->getLastLimit(2);
		$this->view->noticias_footer = $noticias_footer;
		
		$obj_videos = new Application_Model_Video();
		$video_footer = $obj_videos->getLastVideo();
		$this->view->video_footer = $video_footer[0];
		
		$obj_cartones = new Application_Model_Carton();
		$carton_footer = $obj_cartones->getLastCarton();
		$this->view->carton_footer = $carton_footer;
    }

    public function aboutAction()
    {
        // action body
        $obj_noticias = new Application_Model_Noticia();
		$noticias_footer = $obj_noticias->getLastLimit(2);
		$this->view->noticias_footer = $noticias_footer;
		
		$obj_eventos = new Application_Model_Evento();
		$eventos_sidebar = $obj_eventos->getEventosLimit(4);
		$this->view->eventos_sidebar = $eventos_sidebar;
		
		$noticias_sidebar = $obj_noticias->getLastLimit(4);
		$this->view->noticias_sidebar = $noticias_sidebar;
		
		$obj_videos = new Application_Model_Video();
		$video_footer = $obj_videos->getLastVideo();
		$this->view->video_footer = $video_footer[0];
		
		$obj_cartones = new Application_Model_Carton();
		$carton_footer = $obj_cartones->getLastCarton();
		$this->view->carton_footer = $carton_footer;
    }
	
	public function projectAction()
    {
        // action body
        $obj_eventos = new Application_Model_Evento();
		$eventos_sidebar = $obj_eventos->getEventosLimit(4);
		$this->view->eventos_sidebar = $eventos_sidebar;
		
		$obj_noticias = new Application_Model_Noticia();
		$noticias_footer = $obj_noticias->getLastLimit(2);
		$this->view->noticias_footer = $noticias_footer;
		
		$noticias_sidebar = $obj_noticias->getLastLimit(4);
		$this->view->noticias_sidebar = $noticias_sidebar;
		
		$obj_videos = new Application_Model_Video();
		$video_footer = $obj_videos->getLastVideo();
		$this->view->video_footer = $video_footer[0];
		
		$obj_cartones = new Application_Model_Carton();
		$carton_footer = $obj_cartones->getLastCarton();
		$this->view->carton_footer = $carton_footer;
    }

}

